        <?
        require_once('header.php'); // uri  
        ?>
         <script type="text/javascript" src="js/jquery.validate.js"></script>  
        <link rel="stylesheet" href="css/login.css"> 
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->
        <div class="wrapper wrpForgotPassword">
            <i class="siteLogo"></i>
            <p class="forgotPassword namePage">Forgot Password?</p>
            <p class="enterEmail desPage">Enter your email and we’ll send a link to reset your
password to the address we have for your account.</p>
            <form class="formForgotPwd" id="formForgotPwd">
                <input class="inptEmail inptUserPwd" name="email" type="text" placeholder="Email">
                <button class="btnResetPwd" >Reset Password</button>
            </form>
            <style>
           /* .inptUserPwd {
            border-style:none 
            }*/
            </style>
            
            <script>
            
       $().ready(function() {
            $("#formForgotPwd").validate({ 
            rules: {
            email:  {
                required: true,
                email: true
                      }
            
           },
           messages: {   
            email:{
                                        email: "ไม่ถูก  รูปแบบ อีเมล์",
                                        required: "โปรดกรอกอีเมล์นี้",

                                }
           },
           submitHandler: function() { 
           

           postCORS('<?=serviceinfo?>forgotpassword',$('#formForgotPwd').serialize() ,function(data) {
         
                  if(data.error==0)
                  {
                    alert("โปรดเช็คเมล์");
                  
                  }else
                  {
                  
                   alert(data.error);
                   
                  }

                 return false; 
           });
           return false;
           
           
           }
            });
        });
      </script>
        
        </div>
     <?
        require_once('footer.php'); // uri  
        ?>